package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"sends/api/internal/config"
	"sends/sendrpc/sendrpcclient"
)

type ServiceContext struct {
	Config  config.Config
	SendRpc sendrpcclient.Sendrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:  c,
		SendRpc: sendrpcclient.NewSendrpc(zrpc.MustNewClient(c.SendRpc)),
	}
}
